﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MyProfile.aspx.cs" Inherits="MyProfile" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="col-md-10 col-md-offset-1">
        <h1>My Profile </h1>
        <p>Username: </p>
        <asp:Label runat="server" ID="UsernameLabel"> . </asp:Label>

        <asp:ValidationSummary ID="ValidationSummary" runat="server"
            HeaderText="An error has occured, please fix it and try again." ValidationGroup="eval"></asp:ValidationSummary>


        <div id="EditEmailAndSignature" runat="server">

            <asp:Label runat="server" ID="Label1">Email
    <asp:TextBox runat="server" ID="EmailTextBox" Enabled="false"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ErrorMessage="Email cannont be left blanc!"
                    ValidationGroup="eval" ControlToValidate="EmailTextBox">*</asp:RequiredFieldValidator>

            </asp:Label>
            <br />
            <asp:Label runat="server" ID="SignatureLabel">Signature
    <asp:TextBox runat="server" ID="SignatureTextBox" Enabled="false"></asp:TextBox>
            </asp:Label>



            <br />
            <asp:LinkButton runat="server" ID="EditButton" OnClick="EditButton_Click">Edit</asp:LinkButton>
            <asp:LinkButton runat="server" ID="ChangePasswordButton" PostBackUrl="~/MyProfile.aspx?ChangePassword=true">Change Password</asp:LinkButton>
        </div>




        <div id="ChangePasswordDiv" runat="server">

            <asp:Label runat="server" ID="OldPasswordLabel">Current Password
        <asp:TextBox runat="server" ID="OldPasswordTextBox" Enabled="false"></asp:TextBox>
            </asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ErrorMessage="Youre signature cannot be left blanc!"
                ValidationGroup="eval" ControlToValidate="OldPasswordTextBox">*</asp:RequiredFieldValidator>



            <asp:Label runat="server" ID="NewPAsswordLabel">New Password 
        <asp:TextBox runat="server" ID="NewPasswordTextBox" Enabled="false"></asp:TextBox>
            </asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ErrorMessage="Youre signature cannot be left blanc!"
                ValidationGroup="eval" ControlToValidate="NewPasswordTextBox">*</asp:RequiredFieldValidator>



            <asp:LinkButton runat="server" ID="ConfirmPasswordChangeButton" OnClick="ConfirmPasswordChangeButton_Click" ValidationGroup="eval" CausesValidation="true"> Confirm </asp:LinkButton>
        </div>
    </div>
</asp:Content>

